//Stephen Kirksharian
//Robert Harkreader
//CPSC 321
//DUE 4/27/08


//Here is the branch control 
`define BEQ 6'b000100
`define BNE 6'b000101

module branch_ctr(opcodes,control);
	input [5:0] opcodes;
	
	output [1:0] control;
	reg [1:0] control;

always @(opcodes) begin
	case (opcodes) 
	  `BEQ: begin
		control=2'b01;
	   end
	  `BNE: begin
		control=2'b00;
	   end
	  default: begin
		control=2'b10;
	  end
	endcase
end

endmodule